import request from '@/utils/request'

/**
 * 分页查询数据
 * @param {Object} params
 */
export function dataListApi(params) {
  return request({
    url: '/api/xmsp/project/data',
    method: 'get',
    params
  })
}

// 新增
export function addApi(data) {
  return request({
    url: '/api/xmsp/project',
    method: 'post',
    data: data
  })
}

// 修改
export function editApi(data) {
  return request({
    url: '/api/xmsp/project',
    method: 'put',
    data: data
  })
}

export function findByIdApi(id) {
  return request({
    url: '/api/xmsp/project/'+id,
    method: 'get'
  })
}